import os
import configparser

def get_project_root():
    current_file_path = os.path.abspath(__file__)
    current_dir_path = os.path.dirname(current_file_path)
    return os.path.abspath(os.path.join(current_dir_path, os.pardir, os.pardir))

def delete_files(folder_path):
    files = os.listdir(folder_path)
    for file in files:
        file_path = os.path.join(folder_path, file)
        if os.path.isfile(file_path):
            os.remove(file_path)

def get_quant_config():
    quant_config = configparser.ConfigParser()
    quant_config.read(get_project_root() + '/config/quant_config.ini')
    return quant_config